package site.duanzy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import site.duanzy.dto.BnsUser;
import site.duanzy.service.BnsUserService;

/**
 * @ClassName: BnsUserController
 * @Description: 测试
 * @author dzy
 * @date 2017年7月28日下午5:28:49
 * @version v1.0
 */
@Controller
@RequestMapping("/bnsUser")
public class BnsUserController {

	@Autowired
	private BnsUserService service;
	
//	@ResponseBody		//会直接返回字符串，不会返回视图
	@RequestMapping("/index")
	public String index(){
		BnsUser selectByPrimaryKey = service.selectByPrimaryKey(1);
		
		return "index";
	}
}
